﻿<Application x:Class="SyncTool.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
    <Style x:Key="HyperlinkButtonStyle" TargetType="{x:Type ButtonBase}">
      <Setter Property="HorizontalAlignment" Value="Left" />
      <Setter Property="Padding" Value="1" />
      <Setter Property="Cursor" Value="Hand" />
      <Setter Property="BorderBrush" Value="#FF009999" />
      <Setter Property="Foreground" Value="Black" />
      <Setter Property="Template">
        <Setter.Value>
          <ControlTemplate TargetType="{x:Type ButtonBase}">
            <Grid Background="Transparent" Margin="{TemplateBinding Padding}">
              <ContentPresenter SnapsToDevicePixels="True" RecognizesAccessKey="True"
                  Content="{TemplateBinding ContentControl.Content}" ToolTip="{TemplateBinding ContentControl.Content}" />
              <Border x:Name="Underline" VerticalAlignment="Bottom" BorderThickness="0,1,0,0" Height="2"
                Visibility="Visible" BorderBrush="Blue"
                 />
            </Grid>
            <ControlTemplate.Triggers>
              <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Visibility" TargetName="Underline" Value="Visible" />
              </Trigger>
              <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Foreground" Value="Gray" />
              </Trigger>
            </ControlTemplate.Triggers>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>
  </Application.Resources>
</Application>
